package com.blue.blog.api.mapper;

import com.blue.blog.api.pojo.Blog;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface BlogMapper {
    List<Blog> findAllBlog();

    Long findNewBlogId();

    Blog findBlogById(Long id);

    Integer saveBlog(Blog blog);

    Integer updateBlog(Blog blog);

    Integer deleteBlogById(Long id);
}
